<ion-header>
  <ion-navbar>
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>注册</ion-title>
  </ion-navbar>
</ion-header>


<ion-content padding>
  <form [formGroup]="loginForm" (ngSubmit)="login(loginForm.value)" >
    <ion-item>
      <ion-label>账号</ion-label>
      <ion-input type="text" formControlName="username" placeholder="不包含特殊字符" ></ion-input>
      <!--<div *ngIf="username.hasError('required') && username.touched" class="error-message">* 请输入用户名</div>-->
    <!--  <div *ngIf="(username.hasError('minlength')||username.hasError('maxlength')||username.hasError('pattern')) && username.touched" class="error-message">* 请输入正确的电话号码</div>-->
    </ion-item>
    <!--<p color="danger">LoginID must is email.</p>-->
    <!-- <p *ngIf="loginForm.controls.LoginID.valid && loginForm.controls.LoginID.touched" secondary> LoginID is good</p>-->
    <ion-item>
      <ion-label>手机号</ion-label>
      <ion-input type="text" formControlName="phoneNo" (focus)="IDvalidate($event)" placeholder="不包含特殊字符"></ion-input>    
    </ion-item>

    <button ion-button color="secondary" (click)="GetCode($event)">获取验证码</button>
    <ion-input type="text" formControlName="validate" placeholder="输入手机收到的验证码"></ion-input>
    <ion-item>
      <ion-label>密码</ion-label>
      <ion-input type="password" formControlName="password" placeholder="不包含特殊字符"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label>确认密码</ion-label>
      <ion-input type="password" formControlName="repassword" placeholder="不包含特殊字符"></ion-input>
    
    </ion-item>

    <input type="file" size="50" formControlName="image">
    <button ion-button (click)="uploadresume($event)">上传</button>
    <!--<div *ngIf="repassword.e.minlength " class="error-message" padding>* 两次密码不一致</div>-->
    <div *ngIf="boo" padding>
    ***************** <b>{{err}}</b>
    </div>
    <button ion-button full  (click)="login($event)" >注册</button>
  </form>
</ion-content>
